package com.itheima.health.utils;

import java.time.Instant;
import java.util.Date;

public class DataUtils {
    public static Object DateToStr(Date orderDate) {
        return orderDate;
    }

    public static Date StrToDate(Date orderDate) {
        return Date.from(Instant.ofEpochSecond(orderDate.getTime()));
    }
}
